package cate.game.event.pointrace;

import cate.game.GameBody;
import cate.game.event.GameEventListener;
import cate.game.framework.advanced.AdvancedEventSource;
import cate.game.pvp.pointrace.handler.PointRaceHandler;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@SuppressWarnings("unused")
public class PointRaceRwdEventListener implements GameEventListener<PointRaceRwdEvent> {

    @Override
    public void onEvent(PointRaceRwdEvent rewardEvent) {
        log.debug("收到了事件 {}", rewardEvent);
        GameBody gameBody = rewardEvent.getGameBody();
        PointRaceHandler eventHandler = gameBody.pvp.pointRace.getLocalHandler();
        eventHandler.onRwdEvent(rewardEvent);
    }
}
